require 'test/unit' 
require 'sortline'     


class SORTLINE < Test::Unit::TestCase 
	# def test_sort_line
		# assert_equal(Time.local(2005, 1, 1),
                 # month_before(Time.local(2005, 1, 29)))
	# end
	
	def test_rearrange_with_middle_name
		assert_equal("Dawn E. Marick",rearrange("Marick, Dawn Elaine"))
	end

	def test_rearrange_without_middle_name
		assert_equal("Paul Marick" , rearrange("Marick, Paul" ))
	end
end